home *** CD-ROM | disk | FTP | other *** search
/ Everything For A Hacker / 19990506-[HACK].iso / ANTIVIR / nav / NAVDOSWN / UNINSTAL.IN$ / UNINSTAL.INF
INI File  |  1998-05-21  |  10KB  |  349 lines

  1. ;**************************************************************************
  2. ;* Norton AntiVirus UnInstall Script                              *
  3. ;**************************************************************************
  4.  
  5. [InstallVersion]
  6. 4.0
  7.  
  8. [WindowsVersion]
  9. 3.10
  10. "The Norton AntiVirus UnInstall"
  11. "requires Microsoft Windows version 3.1"
  12. "or greater."
  13.  
  14. [Process]
  15.                                         ; Should always be first line
  16. Uninstall()
  17.  
  18. AllowIntlChars()
  19.  
  20. SetActiveCopy(UnCopyNav, uninstal.inf)
  21. FullUninstall()
  22. SelectOption(BaseFiles)
  23.  
  24. ResetTarget(TargetToSource)
  25.  
  26. switch55 = MessageYesNo(MessageUnInstall)
  27.  
  28. #if (switch55)
  29.    Backup(SIWCustCopy)
  30.  
  31.    SilentModifyTF(ModifyConfigSys)
  32.  
  33.    CallProc(UnloadNav)
  34.  
  35.    Delete(ForceUseOfWindowsDirectory)
  36.  
  37.    CallProcEx(SetSystemTarget)
  38.  
  39.    switch21 = CallProcEx(SIWIsNavwLoaded)
  40.  
  41.    #if(switch21)
  42.        MessageBox(MessageNavIsLoaded)
  43.        Delete(CleanupCustDLL)
  44.        Exit()
  45.    #endif
  46.  
  47.    CallProcEx(SIWRestoreNetscapeIni)
  48.  
  49.    CallProcEx(DecreaseLiveUpdateCount)
  50.  
  51.  
  52. ; this line removes the loading of navtsrw.exe in the win.ini
  53.    RemoveFromLoad(RemNAVTSRW)
  54.  
  55.  
  56.    Uncopy()
  57.  
  58.    switch22 = MessageCancel(ByeUnInstallSuccess)
  59.  
  60. ; Remove Groups in Windows Shell Program
  61.    Groups()
  62.  
  63.    CallProcEx(SIWRemoveSourceDir)
  64.  
  65.    Delete(CleanupCustDLL)
  66.  
  67.  
  68.     #if (switch22)
  69.         ExitReboot()
  70.     #else
  71.         Exit()
  72.     #endif
  73.  
  74. #else
  75.  
  76. Exit()
  77.  
  78.  
  79. #endif
  80.  
  81.  
  82.  
  83.  
  84. ;**************************************************************************
  85. ;* Set Shell section                                                      *
  86. ;**************************************************************************
  87.  
  88. [SetShell]
  89. ;AppIniName      = nav.ini
  90. WinIniName      = win.ini
  91. SystemIniName   = system.ini
  92. Message         = MessageBox.SetShellMessage
  93. SysSectionName  = boot
  94. WinSectionName  = windows
  95. shell           = %s\setup.exe
  96. load            =
  97. run             =
  98. SetShellIfLoaded=
  99. Backup          = Backup.SetShellSave
  100. Restore         = Backup.SetShellRestore
  101. Active          = No
  102. IfActiveList    =
  103. SubProcess      =
  104.  
  105. [SetShellSave]
  106. win.ini,    win.$nn,    WINDOWS
  107. system.ini, system.$nn, WINDOWS
  108.  
  109. [SetShellRestore]
  110. system.$nn, system.ini, WINDOWS
  111. win.$nn,    win.ini,    WINDOWS
  112.  
  113. [SetShellMessage]
  114. caption = "Norton AntiVirus -- Install"
  115. "Welcome to the Norton AntiVirus"
  116. "install program.  Please press OK to allow"
  117. "Setup to restart Windows and continue the"
  118. "installation.  Press Cancel to exit."
  119.  
  120.  
  121. ;**************************************************************************
  122. ;* Backup                                                                 *
  123. ;**************************************************************************
  124. [SIWCustCopy]
  125. siwcust.dll,  siwcust.dll,  SOURCE,  WINDOWS
  126.  
  127. ;**************************************************************************
  128. ;* Cleanup                                                                *
  129. ;**************************************************************************
  130. [CleanupCustDLL]
  131. siwcust.dll,  WINDOWS
  132.  
  133. ;**************************************************************************
  134. ;* Copy                                                                   *
  135. ;**************************************************************************
  136.  
  137. [UnCopyNav]
  138. ;seltype.component, description,                        size,req,files,show
  139. CopyMain.BaseFiles, "Norton AntiVirus",          0,   N,  N,    N
  140.  
  141. CopyMain.Selective, "Selective uninstall",               0,   N,  N,    N
  142.  
  143. [UnCopyNav:CopyDialog]
  144. caption = "Deleting Files..."
  145. posx = -10
  146. posy = -10
  147.  
  148. [UnCopyNav:Advo]
  149. x-position = 5
  150. y-position = 5
  151. location   = siwadvo.dll
  152. count      = 1
  153.  
  154. ;[AdvoDefault]
  155. ;posx = 20
  156. ;posy = 80
  157. ;text = AdvoText
  158. ;
  159. ;[AdvoText]
  160. ;"Be sure to fill out your registration"
  161. ;"card.  This will allow Symantec to contact"
  162. ;"you about future product updates."
  163.  
  164. [RemoveBrowserInfo]
  165. IniName=win.ini
  166. SectionName=NortonAntiVirus
  167. Browser=1
  168.  
  169. ;**************************************************************************
  170. ;* Groups                                                                 *
  171. ;**************************************************************************
  172.  
  173. [Groups]
  174. "Norton AntiVirus",             nav40.grp
  175.  
  176. [Norton AntiVirus]
  177. "Norton AntiVirus",           navw.exe,   BaseFiles, ,TARGET
  178. "Norton Scheduler",               schedule.exe,   BaseFiles, ,TARGET
  179. "Norton AntiVirus Auto-Protect",   navtsrw.exe,   BaseFiles, ,TARGET
  180. "Norton AntiVirus Uninstall", setup.exe,      BaseFiles, ,TARGET , , , "/u"
  181. "Create Rescue Disks",   rescuew.exe,   BaseFiles, ,TARGET
  182.  
  183.  
  184. ;**************************************************************************
  185. ;* Dialogs/Message box text                                               *
  186. ;**************************************************************************
  187.  
  188. [ByeShell]
  189. caption = "Norton AntiVirus -- Install Complete"
  190. ""
  191. "This concludes the installation of Norton AntiVirus."
  192. "Please review the README.TXT file for last minute updates to the"
  193. "documentation."
  194. ""
  195. "In order to reset the Windows environment, Setup will now close"
  196. "Windows."
  197.  
  198. [ByeCancelInstall]
  199. caption = "Norton AntiVirus"
  200. "You have cancelled the installation"
  201. "of Norton AntiVirus."
  202.  
  203. [ByeNoSel]
  204. caption = "Norton AntiVirus"
  205. ""
  206. ""
  207. "Because no items were selected for"
  208. "installation, this may be an incomplete"
  209. "install of Norton AntiVirus"
  210.  
  211. [ExitMessage]
  212. caption = "Norton AntiVirus"
  213. "Because no items were selected for"
  214. "installation, this may be an incomplete"
  215. "install of Norton AntiVirus"
  216. ""
  217. "Press OK to return to your Windows session."
  218.  
  219. [Errors]
  220. noprev  =  "Symantec Install for Windows is already running!"
  221.  
  222. [FileCopy]
  223. copycaption   =  "Norton AntiVirus -- Install"
  224. errorcaption  =  "Error Copying Files"
  225. insertcaption =  "Insert Diskette"
  226. Message    = MessageText
  227.  
  228. [Cancel]
  229. caption = "Norton AntiVirus -- Install"
  230. text   = "Are you sure you want to exit?"
  231.  
  232. [CancelShell]
  233. caption = "Norton AntiVirus -- Install"
  234. text = "When you cancel Setup, Windows will exit so that we can reset the Windows environment."
  235.        "Are you sure you want to exit?"
  236.  
  237.  
  238. ;**************************************************************************
  239. ;* This message is for when the user tries to uninstal with NAV loaded    *
  240. ;**************************************************************************
  241. [MessageNavIsLoaded]
  242. caption = "Norton AntiVirus Clinic Loaded"
  243. "You must exit the Norton AntiVirus Clinic before running uninstall."
  244.  
  245.  
  246. ;**************************************************************************
  247. ;* This message is for when we can't locate the NETSCAPE.INI file         *
  248. ;**************************************************************************
  249. [MessageNoNetscapeIni]
  250. caption = "Updating NETSCAPE.INI"
  251. "The uninstall program cannot find the NETSCAPE.INI file."
  252. ""
  253. "If Norton AntiVirus is installed as a Netscape helper application, you must manually remove the helper application file format mappings in Netscape."
  254. ""
  255. "For details, refer to Help in the General Preferences | Helpers dialog box in Netscape."
  256.  
  257.  
  258. ;**************************************************************************
  259. ;* This is the ending message where we say it was successful.             *
  260. ;**************************************************************************
  261. [ByeUnInstallSuccess]
  262. caption = "Successful Uninstallation"
  263. "Norton AntiVirus was successfully removed from your computer."
  264. ""
  265. "In order for changes to startup files to take effect, Norton AntiVirus Install needs to reboot your machine."
  266. ""
  267. "Select OK to reboot now.  Select CANCEL to exit without rebooting."
  268.  
  269. ;**************************************************************************
  270. ;* This message asks the user if we should update their NETSCAPE.INI file *
  271. ;**************************************************************************
  272. [MessageUnInstall]
  273. caption = "Uninstall Norton AntiVirus"
  274. "Are you sure you want to uninstall the Norton AntiVirus?"
  275.  
  276. ; ********************************************************************
  277. ; Config.sys modifications
  278. ; ********************************************************************
  279.  
  280. [ModifyConfigSys]
  281. caption    = "Norton AntiVirus 4.0 -- Modify CONFIG.SYS File"
  282. text1      = "The following changes need to be made to your CONFIG.SYS file:"
  283. FileSpec   = C:\CONFIG.SYS
  284. FileType   = text
  285. Rem1       = "REM "
  286. FindRems   = 0
  287. EditCaption= "Edit CONFIG.SYS"
  288. EditError1 = "A problem was encountered preparing the new config.sys"
  289. EditError2 = " "
  290. EditError3 = "You should:"
  291. EditError4 = "1. Review the lines that need to be added"
  292. EditError5 = "2. Select the 'Save the required changes to new file's option"
  293. EditError6 = "3. Continue and complete the Install Process"
  294. EditError7 = "4. Make the changes to the config.sys file later"
  295. DelItems   = ConfigDelItems
  296. RemItems   = ConfigRemItems
  297. AddItems   = ConfigAddItems
  298.  
  299. [ConfigRemItems]
  300. *cloaking.exe*
  301.  
  302. [ConfigDelItems]
  303. *nav\cloaking.exe*
  304. *navtsr*
  305.  
  306. [ConfigAddItems]
  307.  
  308. ;**************************************************************************
  309. ;* Target Selection Stuff                                                 *
  310. ;**************************************************************************
  311. [TargetToSource]
  312. reset = TARGET
  313. location = %s, SOURCE
  314.  
  315. [SetupLocation]
  316. location = %s, TARGET
  317.  
  318. [SIWRemoveSourceDir]
  319. dll = siwcust.dll
  320. function = SIWRemoveSourceDir
  321.  
  322. [SIWRestoreNetscapeIni]
  323. dll = siwcust.dll
  324. function = SIWRestoreNetscapeIni
  325.  
  326. [SIWIsNavwLoaded]
  327. dll = siwcust.dll
  328. function = SIWIsNavwLoaded
  329.  
  330. [DecreaseLiveUpdateCount]
  331. dll = siwcust.dll
  332. function =DecreaseLiveUpdateCount
  333.  
  334.  
  335. [SetSystemTarget]
  336. dll = siwcust.dll
  337. function = SIWSetSystemTarget
  338.  
  339. [UnloadNav]
  340. dll = siwcust.dll
  341. function = SIWUnloadNav
  342.  
  343.  
  344. ;**************************************************************************
  345. ;* Cleanup WIN.INI
  346. ;**************************************************************************
  347. [RemNAVTSRW]
  348. navtsrw.exe
  349.